package y_2025.m03.d21.t01;

public class Compute {
    public static void main(String[] args) {
        // 合法三角形
        Triangle validTri = new Triangle(3, 4, 5);
        System.out.println("合法三角形周长: " + validTri.getPerimeter());

        // 非法三角形
        Triangle invalidTri = new Triangle(1, 2, 5);


        Ladder ladder = new Ladder(2, 3, 4);
        System.out.println("梯形面积 " + ladder.getArea());

        Circle circle = new Circle(5);
        System.out.println("圆形面积: " + circle.getArea());
        System.out.println("圆形周长: " + circle.getCircumference());
    }
}